﻿using System.Windows;
using SlideShowDFG2.Properties;

namespace SlideShowDFG2
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void Application_Exit(object sender, ExitEventArgs e)
        {
            RegistryHelper registry = new RegistryHelper();
            if (!registry.FtpRememberConnection)
            {
                // Clear all web connection info, except reset port number to defaults
                registry.FtpDataFile = string.Empty;
                registry.FtpHost = string.Empty;
                registry.FtpPassword = string.Empty;
                registry.FtpPort = 21;
                registry.FtpSaveDir = string.Empty;
                registry.FtpUserName = string.Empty;
            }
        }
    }
}
